package com.lc.dr.service;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;

@Service
@ConditionalOnProperty(name = "cluster.name", havingValue = "gnc")
//@ConditionalOnExpression(value = "'${cluster.env}'.equals('gnc')")
public class TestServiceImplB implements TestService {


    @Override
    public String type() {
        return "B";
    }

    @Override
    public boolean test(String B) {
        System.out.println("testB");
        return true;
    }
}
